import request from '@/utils/request'

// 查询文件夹信息列表
export function listFolderInfo(query) {
  return request({
    url: '/manage/folderInfo/list',
    method: 'get',
    params: query
  })
}

// 查询文件夹信息详细
export function getFolderInfo(folderId) {
  return request({
    url: '/manage/folderInfo/' + folderId,
    method: 'get'
  })
}

// 新增文件夹信息
export function addFolderInfo(data) {
  return request({
    url: '/manage/folderInfo',
    method: 'post',
    data: data
  })
}

// 修改文件夹信息
export function updateFolderInfo(data) {
  return request({
    url: '/manage/folderInfo',
    method: 'put',
    data: data
  })
}

// 删除文件夹信息
export function delFolderInfo(folderId) {
  return request({
    url: '/manage/folderInfo/' + folderId,
    method: 'delete'
  })
}
